package org.xg.study.pd;

import lombok.Data;

/**
 * @author CMG
 * @version 1.0
 * @description 记录者类
 * @cLassName ConfigOriginator
 * @date 2021/9/17 9:22
 **/
@Data
public class ConfigOriginator {
    private ConfigFile configFile;

    public ConfigMemento saveMemento(){
        return new ConfigMemento(configFile);
    }

    public void getMemento(ConfigMemento memento){
        this.configFile = memento.getConfigFile();
    }
}
